added if thens for slashes