dont assign data if data is not present