put the action call in a seperate method