created 2 new methods for log, still need to finish them