A method for preparing a compound of formula R-Linker-A-X comprising coupling a compound of formula R—Y with a compound of formula Z-Linker-A-X, wherein Y and Z are groups that can react to link R- to -Linker-A-X, wherein R comprises a fluorophore, wherein the linker is branched or unbranched carbon chain comprising no more than 30 carbon atoms and comprises —C(O)NH(CH2CH2O)y, wherein y=2-8, A is (CH2)n and n=2-10, A-X is a substrate for a dehalogenase, X is a halogen, R—Y is an activated ester of a compound of formula R and Z is an amine suitable to react with the activated ester to form an amide bond.