simple curry functionality