adapt basic sample