modifications due to data structure