added more functions to assign

added a comment function