switch to int