fixed define errors