clean and commented code