add adjustments suggested by @ax3l