adding new changes for gif type