building sub table costs now saves data