trailing whitespace
import sys
refactored