updated samples and added new callback for sample37