adding another variable for calculation