minor details changed