add simple scaling algorithm