tweaks but can't get code to behave!