ENYO-3053: use temp variable to make code more readable