debug redundant code deleted.