serparated wp functions