int -> long
changed the data types correctly
Removed the echo statement which was added for debugging