adding src function