delete working as expected, made further changes