switch to malloc storage