tick operation rationalized a bit. code cleanup in general.