store only code for parents (reduce length)