building functions and alien buildings