it wasn't working because I forgot to take out the var