spelling correction, renamed two functions