better advanc using stackbased storage