changed open() to private