fixing minor errors