runs but buggy