exp gain function seems to be off