minor optimization

Signed-off-by: Aaron Cohn <acohn@cogswell.edu>