had to rearrange the var to make it work