added malloc and string stugg