added int into function definition