fixed bugs in sample35