starting primary code