adding primary codes for Function System