making code more readable + some commments