working on erros