corner detection functions added to marshall