2014.4.15

big modification to parent algorithm