updates code refactor bug fix