determine status and handle errors
Assigned var