fixing stuff involving data types