changing missing return type to int