shorter func name and error checking