fixed errors to get test to pass