expressions for firstOrDefault and lastOrDefault