fixed #5 with ~ instruction