adding better log print