add pic and make register work