removed duplicate code for collection methods