making code as similar to ryans as possible