changed find(:last) to call last explicitly