SGT_How to avoid ambiguous behavior