more error checking (still not working)