added logging method