some code formating and make blocks disapper if there are no results