use erb template, make better