added hand detection