added badly coded display functions