removed broken function code