some memory optimization is done