better usage of pipeline