project06 need to check for errors