delete unused gif and enhance core function