successfully replaced char usage with enumeration