pitch matching & current position updating added