made pixel loop clearer