rewrite for 32bits