pass value to function in form of