aditional error checking