more reuse of code