changed names of the functions