before my program run i want to know the remaining memory
and also i want to clear memory that's not use or unused