using Raphael type flag