ugly temp method