move some functions for display class