removed unportable code