contouring problems to be fixed