Changed type long to type int