proper formatted and logged functionality completed