determine compensation