added incomplete empty method and implemented setText