fixing some minor errors