added benchmark code