update instructions and functions