confused by this method - how's this work?