fixed define error statements