added some random magic