refactored
sugar library added