automating part of the process