changed the norm to two norm for projected gradient