temp<< not working