turning the code better