changed command result to use prototype