fixed inverse slightly