first version of toggle done