changed access modifiers. removed unuseful function