Check if this suggestion solves the error of  not defined