added shape detection source file