Drug discrimination and state dependent learning