list operations
small refactor