fixed typo in sample transformation