some changes on pin change interrupt to stabilize receive