towards refinement in gate-structure recognition