added beginning functionality