fixing variable syntax issue