Is there a shorter way to write these?