moved setPadding function outside util object as it is project specific