min time max mem code added