tested and fixed instructions