resolving compile errors