this should probably take a boolean as input arugment?