generalize getFromFirst()