trying to handle instructions - unfinished