code that adds backwords compability