exp gain function still seems to be off