call function and added comments