fixed less errors for missing variables