initializing this to 0
generate implementations before checking for the check to dump the entire rest of the code at once; also fix the position check to be <= instead of < to not miss position 0