commented code and simplified it