implementing shape detection