why there is always bug at the end....