sending additional data into function