comments added to functions