code formatting, use sink