changed integer type to upper one (almost broken)
fixed cons funcs
fixed vector funcs