fixed some minor mistakes so that it builds