updated wolperting
removing console.log
refactoring for readability and shortness