cleaned up zoom code