new post. changed console code style in old post