changed sequence due to perfomrmance issues