added clearTemp bat