refactored setnewDATa