cleaning up scope