udpated error code