updated gel, removed redundant code