removed some warnings of the codes