"stopped median function from executing => further developping required"