setting memory limits