clean code in server