added hascode