dry the code