trying better beat detection