added and unless attribute to the post features
removed unused code