change avatar to int