arrange code for easy to read