modified continuous scale version + added docs