added perfect scaling!