added wrapper function to graphics array