fixing pointer + display bugs