min code
added logs