combination of two methods

combined get() and pixels[]