changed statics to attributes