tweaking vals, pixels moving up, edge detection