minor change with alternative implementation