effective mass computation factored out