changed startup sequence back to original and edited silly mistakes