readme code logic update