fixing errors so it can bould