remove unused function and make private constructor