modified function array complement