implemented helen's suggestions