added return to fix nullpointer when lose