need to update. error in comparing action. Action was not passed properly in env