mem and time to be optional