added finger detection