use autoprops

since it is less code