get rid of typecast stuff