changed syntax from def to int or void