prepare sample