implemented lose behavior