the err msg code is duplicated from above