start rewrite #getContur