removed some log and better example