fixing up dynamic binding issue