fixing this buggy reg sel