implemented analyze on simple