sample now works entirely.