build in and out