speed improvement, rewritten coupling widget