added initial function script