update type int to long to remove WARN