changed function name and fixed error