should have bug tested better