error checking addition