updated transform call based on w3schools example