implemented a few instructions