removed errors and warnings which appeared at compiletime