moved build into file