removed cindent as it is making coding difficult - especially while defining nested functions