modified codes so far