updated data structure to long