solved undefined constants