renamed method in to getInt for better meaning