expected output is an integer