minor fixes so it would compile