add error handling for bad operators to calc