added resolution reduction

and get uniform location at once