fixed attempted var reassignment (not allowed)