changed src code to dynamic