fixed the types