helps in error checking