solved bug in retire