use constant for default values
fix indenting, remove tabs