adding some malloc checking