removed error with toogle