added ommited corner case