add support for less than three posts