rename function & add comment