fixed state function for means view