add wrapper and perevntile->interger