draw gates on right places