updated frame codes processing