added inversion sketch