added a instruction function