adjust cast of data to ctrl