shyamalan established a production facility at the jacobson logistics warehouse site in nearby levittown, pennsylvania, where sets for the apartment complex and a half-city block of row houses were built. occasional footage was shot inside the overflow area of the warehouse. most of the filming was completed after work hours.