renamed the function