added todo at error place