adding scale parameter and one more pattern