maybe extract to an helper?