Added var to lines 23 and 25