added islegal and stuff