fixes for type