added a comment to match up with the js version