working, but with errors