UPDATE: changed class of @eot to numeric and adjusted class definition accordingly