correct the type as the second parameter