a tiny refactoring
fix rake:create_sample