the result int avariable must be set to 1 since the beginning