added static option, fixed indentation