refactored get collection value