get building by id