removed post format support
reformatted code