added mem functs