simplified inner membscore function