added analyze mode