clean code for action