some minor errors resolved