test file for contours and removed debug prints