removing unecessary ref