changed memory block allocation