added building access retrieval in listbuildingsby() function