disclosed is a method for making a composition which comprises of an array of unsaturated , aliphatic , biocompatible and biodegradable polyesters with photo curing capability which upon mixing with an active ingredient will provide an inject able liquid or putty - like material . the composition can be injected via a customary syringe and needle and be photocured in situ using visible light irradiation . changing in the network crosslinking , molecular weight of the linear polymeric precursors and their chemical structures can control delivery rate of the active ingredient from the device .