fixed expected type error