fixed sample impl