added code to link code between floors and buildings