refactored trigger and logger, added padding