formatted erros and reflection