implements function codes.