refactored

Signed-off-by: Nicholas Jackson <nic@thatlondon.com>