cleaned up returned definition