fixing variable name issue