added comments and parameters