implemented get_first method