adding initial function