function comments added