solving minor errors