depency added inside function