adding in function comments