added empty contraint to patch mode