edited: updating function header and description