learn several basic function