moved to constructor