small tweaks to get this to apply