fix displaying functions