making frame constructor private