fixed on and off, better approach for K>1