working on more generic shape prior