Adaptive behavior and stereotypes