move errors into constants
use errors constant fns