added more comments for clairty