change sid to int