removing error with enum