updated to be compatible with new version of gel