custom poof's code