define for uniformity
defined function ERROR and NO_ERROR codes