changed param type to boolean.