starting to add function comments for additional clarity