getInt now works better