save building properly