making code work on my machine >.<