refactor code good sunday styling to generic code good day