removed unnecessary dtype cast