adding functions for contractive, have jacobian calc func left