working on some errors