program display positions correctly