reapplying the changes with better formatting
added import for log4j