possible fix for issue 6
adjustments for readability