fixed errors preventing compile