changes for the naive approach