The synthesis of molograms on the sensor chip is realized with properly designed surface chemistry and reactive immersion lithography (RIL). Through the RIL process the biomolecular recognition structure of the mologram on a light-sensitive non-fouling graft copolymer layer can be created by standard lithography techniques. The copolymer layer is functionalized with photocleavable protection groups that upon illumination create reactive amines. Subsequent surface chemistry steps enable an easy tailoring of recognition molecules specific to the desired analytical application.