completed. But prints on console