changed code in step 3 to pre