reformated code
added show head options