added support for gen 1-5