pass in proper variables on events