added working startupcode