add function to print instruction