implemented feature clustering