added function to retrieve logic blocks