fixed minor errrs regarding type change