added masonry, masonry functional