uploaded incomplete methods for error checking