clean up warnings in Mac