added initial typing functions