modified coder with related code