clean code to be simpler and more semantic