Removed oncode variable

now it's easier to work with just one variable