fix view unit functions