addind preliminary code