cleaned up function comments