solved minor errors