added initial function