make memory magement slightly better