This code is bad...and I feel bad