going ot get that damn function working