handle executing a single instruction