fix for right type