switched two code bloacks