fixed compile errors ..