putting preview above code