changed void to int