moved except statement